import myAxios from "@/plugins/axios";

// 获取分类分页数据
export function getCategoryPageList(data) {
    return myAxios.post("/admin/category/page", data)
}

// 添加分类
export function addCategory(data) {
    return myAxios.post("/admin/category/save", data)
}

// 删除分类
export function deleteCategory(data) {
    return myAxios.post("/admin/category/delete", data)
}

// 获取分类 select 数据
export function getCategorySelectList() {
    return myAxios.post("/admin/category/listAll")
}